package com.bml.architect.rocketmq.consumer;

import com.bml.architect.rocketmq.domain.User;
import org.apache.rocketmq.spring.annotation.ConsumeMode;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

//@Component
//@RocketMQMessageListener(consumerGroup = "springbootConsumerGroup", topic = "springBoot-Topic", consumeMode = ConsumeMode.CONCURRENTLY)
public class UserConsumer implements RocketMQListener<User> {


    @Override
    public void onMessage(User user) {
        System.out.println("recive object is" + user);
    }
}
